package com.hzncc.scaffold.entity.Other;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 任务表
 * </p>
 *
 * @author DrunkBear
 * @since 2022-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private Boolean isFinished;

    /**
     * 标题
     */
    private String title;

    /**
     * 资源链接
     */
    @TableField("resourceUrl")
    private String resourceUrl;

    /**
     * 资源标题
     */
    @TableField("resourceTitle")
    private String resourceTitle;

    /**
     * 是否免费
     */
    @TableField("isFree")
    private Integer isFree;

    /**
     * 排行
     */
    @TableField(value = "`rank`")
    private Integer rank;

    /**
     * 任务时间
     */
    @TableField("taskHour")
    private Integer taskHour;

    /**
     * 类型
     */
    private Integer type;

    /**
     * 测试信息
     */
    @TableField("testInfo")
    private String testInfo;

    /**
     * 试卷编号
     */
    @TableField("paperId")
    private Integer paperId;

    /**
     * 章节编号
     */
    @TableField("chapterId")
    private Integer chapterId;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private String createTime;

    /**
     * 考试类型
     */
    @TableField("examType")
    private Integer examType;

    /**
     * 选项信息
     */
    @TableField("operationInfo")
    private String operationInfo;

    /**
     * 题库编号
     */
    @TableField("questionLibId")
    private Integer questionLibId;

    /**
     * 考试开始时间
     */
    @TableField("examStart")
    private String examStart;

    /**
     * 考试结束时间
     */
    @TableField("examEnd")
    private String examEnd;

    @TableField(exist = false)
    private List<Question> questionList;


}
